import VueRouter from "vue-router";
import Vue from "vue";
import Home from '../components/Home.vue';
import City from '../components/City.vue';
Vue.use(VueRouter);
const routes = [{
    path:"/",
    name:"Home",
    component:Home
},{
    path:"/city",
    name:"City",
    component:City
}]
export default new VueRouter({
    routes
})import Router from 'vue-router'
import Vue from 'vue'
import MyHome from '@/page/MyHome.vue'
Vue.use(Router)
export default new Router({
    routes:[
        {
            component:MyHome,
            path:'/home'
        }
    ]
})